<?php foreach ($list_reply as $k=>$v):?>
<div class="reply-cont-item">
	<div class="reply-cont-item-posteravatar">
		<img class="topic-view-top-avatar" src="http://www.gravatar.com/avatar/<?php echo md5($v->posteremail);?>?s=40&d=&r=X"/>
	</div>
	<div class="reply-cont-item-postername c2">
		<?php echo $v->postername;?>
	</div>
	<div class="reply-cont-item-cont">
		<?php echo $v->smy;?>
	</div>
	<div class="reply-cont-item-opt">
		<a class="btn-reply-reply" href="javascript:void(0);">回复</a>
		<?php if($is_login && $loginer->id == $v->poster_id):?>
		<a class="btn-ajax-confirm" msg="Sure 不   ？" afterdo="reply_del_after"
			href="<?php echo site_url('c=reply&m=del&id='.$v->id);?>">删除</a>
		<?php endif;?>
	</div>
	<div class="reply-cont-item-posttime c3 fs2">
		<?php echo date('Y年m月d日 H时i分',$v->atime)?>
	</div>
</div>
<div class="b4"></div>
<?php endforeach;?>

<script>
$(function(){
	$('.btn-reply-reply').click(function(){
		var postername = $(this).parents('.reply-cont-item').find('.reply-cont-item-postername').html();
		$('#smy').val('#'+postername.trim()+'# ');
	});
});

ajaxinit();

function reply_del_after(msg,$elt){
	$elt.parents('.reply-cont-item').slideDown('slow');
	setTimeout(function(){
		$elt.parents('.reply-cont-item').remove();
	},1000);
}

</script>